package oop2;

public class Calc {
	public int avg(int java, int music) {
		if (java < 60)
			java += 10;

		return (java + music) / 2;
	}

	public int avg2(Student stu) {
		if (stu.java < 60)
			stu.java += 10;
		return (stu.java + stu.music) / 2;
	}

}
